// JavaScript Document
$(function() {
   $(".topNavCont ol li a, .enter, #colorStyle area, .go, .xoxo_adv li a, .button").stop().fadeTo(250, 1); 
   $(".topNavCont ol li a, .enter, #colorStyle area, .go, .xoxo_adv li a, .button").hover(function() {
      $(this).stop().fadeTo(250,0.6); }
   , function() {
      $(this).stop().fadeTo(250,1); }
   ); 
   // bdayh fade
   $('.gotop').click(function() {
      $('body,html').animate( {
         scrollTop : 0}
      , 500); }
   ); 
   // bdayh gotop
   $(".widgetContent li a, .tabContent li").hover(function() {
      $(this).stop().animate( {
         textIndent : "20px" }
      , 200); }
   , function() {
      $(this).stop().animate( {
         textIndent : "15px" }
      , 200); }
   ); 
   // bdayh link
   // start links
   $(document).ready(function() {
      $('.topNavCont ul li, .topNavCont ol li').hover(function(event) {
         $(this).stop().animate( {
            marginTop : "-3px" }
         , {
            duration : 'slow', easing : 'easeOutElastic'}
         ); }
      , function() {
         $(this).stop().animate( {
            marginTop : "0px" }
         , {
            duration : 'slow', easing : 'easeOutElastic'}
         ); }
      ); }
   ); 
   // end links
   // start links
   $(document).ready(function() {
      $('.bdayhLinks li').hover(function(event) {
         $(this).stop().animate( {
            marginTop : "-3px" }
         , {
            duration : 'slow', 
            easing : 'easeOutElastic'}
         ); }
      , function() {
         $(this).stop().animate( {
            marginTop : "0px" }
         , {
            duration : 'slow', 
            easing : 'easeOutElastic'}
         ); }
      ); }
   ); 
   // end links
   // start links
   $(document).ready(function() {
      $('.paginationlinks li a').hover(function(event) {
         $(this).stop().animate( {
            textIndent : "25px" }
         , {
            duration : 'slow', 
            easing : 'easeOutElastic'}
         ); }
      , function() {
         $(this).stop().animate( {
            textIndent : "22px" }
         , {
            duration : 'slow', 
            easing : 'easeOutElastic'}
         ); }
      ); }
   ); 
   // end links
   // start links
   $(document).ready(function() {
      $('.menuLinks li a').hover(function(event) {
         $(this).stop().animate( {
            textIndent : "20px" }
         , {
            duration : 'slow', 
            easing : 'easeOutElastic'}
         ); }
      , function() {
         $(this).stop().animate( {
            textIndent : "15px" }
         , {
            duration : 'slow', 
            easing : 'easeOutElastic'}
         ); }
      ); }
   ); 
   // end links
   // bdayh
   $(document).ready(function() {
      $(".post-thumbnail").hover(function(event) {
         $(this).find("span.overlay").animate( {
            opacity : "0.3" }
         , 400); // bdayh
         $(this).find('span.facebook-like').stop(true, 
         true).animate( {
            opacity : 1, left : 36}
         , {
            duration : 'slow', 
            easing : 'easeOutElastic'}
         ); $(this).find('span.twitter-tweet').stop(true, 
         true).animate( {
            opacity : 1, right : 36}
         , {
            duration : 'slow', 
            easing : 'easeOutElastic'}
         ); // bdayh
         }
      , function() {
         $(this).find("span.overlay").animate( {
            opacity : "0" }
         , 300); $(this).find('span.facebook-like').stop(true, true).animate( {
            opacity : 0, left : 0}
         , 400); $(this).find('span.twitter-tweet').stop(true, true).animate( {
            opacity : 0, right : 0}
         , 400); }
      ); }
   ); 
   // bdayh
   }
); 
// bdayh
jQuery.cookie = function(name, value, options) {
   if (typeof value != 'undefined') {
      options = options || {
         }; 
      if (value === null) {
         value = ''; 
         options.expires = - 1; 
         }
      var expires = ''; 
      if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
         var date; 
         if (typeof options.expires == 'number') {
            date = new Date(); 
            date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); 
            }
         else {
            date = options.expires; 
            }
         expires = '; expires=' + date.toUTCString(); 
         }
      var path = options.path ? '; path=' + (options.path) : ''; 
      var domain = options.domain ? '; domain=' + (options.domain) : ''; 
      var secure = options.secure ? '; secure' : ''; 
      document.cookie = [name, 
      '=', encodeURIComponent(value), expires, path, domain, secure].join(''); 
      }
   else {
      var cookieValue = null; 
      if (document.cookie && document.cookie != '') {
         var cookies = document.cookie.split(';'); 
         for (var i = 0; i < cookies.length; i++) {
            var cookie = jQuery.trim(cookies[i]); 
            if (cookie.substring(0, 
            name.length + 1) == (name + '=')) {
               cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); 
               break; 
               }
            }
         }
      return cookieValue; 
      }
   }; 
// bdayh